<template>
  <div>

    <el-button class="ml-5" type="success" @click="clock">打卡</el-button>
  </div>
</template>

<script>
export default {
    data(){
      return{
        id:this.$store.state.ID
      }
    },
    methods:{
      clock(){
        this.request.get("ClockInfo/compareFace",{
          params:{
          id:this.id
        }
        } ).then(res => {
          if (res) {
          this.$message.success("打卡成功");
          this.reset();
        } else {
          this.$message.error("打卡失败");
        }
        })
      }
    }
}
</script>

<style>

</style>